#!/bin/sh
process_name=$1
pid=$(pidof $process_name)

echo "Memory calculate process script running..."
while true
do
pmap -x $pid
#cat /proc/$pid/status
sleep 10
done
